
<%--
  Author    何亚培
  Version   V1.0  
  Date      2019/4/25 18:19 
  Description: TODO 
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>页面中直接生成二维码</title>
    <script src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.qrcode.min.js"></script>
  </head>
  <body>
  <div id="qrcode"></div>
  <script>
    /*jQuery(function(){
      jQuery('#qrcode').qrcode("我是何亚培");
    });*/

    jQuery('#qrcode').qrcode({
      render: "table", //也可以替换为table
      foreground: "#C00",
      background: "#FFF",
      text: "我是何亚培"
    });
  </script>
  </body>
</html>
